all: sub pub
sub: sub.cpp log.o
	g++ -g3 -o sub log.o sub.cpp -lzmq -I/home/luojie/software/libzmq/include -L/home/luojie/software/libzmq/src/.libs

pub: pub.cpp log.o
	g++ -g3 -o pub log.o pub.cpp -lzmq -I/home/luojie/software/libzmq/include -L/home/luojie/software/libzmq/src/.libs

log.o: log.h log.cpp
	g++ -c -olog.o -g3 log.cpp

clean:
	rm pub sub
